SimpleKVCache

open class SimpleKVCache<K, V>(cachedValuesCount: Int, kvParent: KeyValueRepo<K, V> = MapKeyValueRepo<K, V>()) : KVCache<K, V> , KeyValueRepo<K, V>

Constructors

Link copied to clipboard
fun <K, V> SimpleKVCache(cachedValuesCount: Int, kvParent: KeyValueRepo<K, V> = MapKeyValueRepo<K, V>())

Functions

Link copied to clipboard
open suspend override fun clear()
Link copied to clipboard
open suspend override fun contains(key: K): Boolean
Link copied to clipboard
open suspend override fun count(): Long
Link copied to clipboard
open suspend override fun get(k: K): V?
Link copied to clipboard
open suspend override fun keys(pagination: Pagination, reversed: Boolean): PaginationResult<K>
open suspend override fun keys(    v: V,     pagination: Pagination,     reversed: Boolean): PaginationResult<K>
Link copied to clipboard
open suspend override fun set(toSet: Map<K, V>)
Link copied to clipboard
open suspend override fun unset(toUnset: List<K>)
Link copied to clipboard
open suspend override fun unsetWithValues(toUnset: List<V>)
Link copied to clipboard
open suspend override fun values(pagination: Pagination, reversed: Boolean): PaginationResult<V>

Properties

Link copied to clipboard
open override val onNewValue: Flow<Pair<K, V>>
Link copied to clipboard
open override val onValueRemoved: Flow<K>